package geor.controller;

import lib.view.SimpleActivity;

import geor.view.SalvarCompraPrazoActivity;
import geor.view.SalvarCompraVistaActivity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;



public class OpcoesPagamento implements OnClickListener {

	SimpleActivity activity = null;
	
	public OpcoesPagamento(SimpleActivity activity) {
		this.activity = activity;
	}
	
	@Override
	public void onClick(DialogInterface dialog, int which) {
		switch (which) {
		case 0:
			activity.go(SalvarCompraVistaActivity.class);
			
			break;
		case 1:
			activity.go(SalvarCompraPrazoActivity.class);
			break;
		}
	}
}
